/* Container and Layout */
.Icontainer {
    margin-inline: auto;
    margin-top: 2rem;
    width: 100%;
    min-width: 650px;
}

h1 {
    text-align: left;
    margin-bottom: 20px;
}

/* Remove fixed width for divs to allow responsive behavior */
div {
    width: 100%;
}

/* VSCode Settings Style Layout */
.vscode-setting-item {
    margin-bottom: 10px;
    padding: 5px 0;
}

.setting-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.setting-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.setting-body {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.setting-description {
    flex: 1;
}

.setting-description info-wrap,
.setting-description info {
    display: block;
    margin-bottom: 4px;
}

.setting-description-full {
    margin-bottom: 8px;
}

.setting-description-full info-wrap {
    display: block;
    margin-bottom: 4px;
}

.setting-input-group-full {
    display: flex;
    align-items: center;
    gap: 5px;
}

.setting-input {
    flex-grow: 1;
    margin-right: 2px;
}

/* Form Layout Classes - Base grid layout shared by multiple classes */
.form-row,
.form-row-no-align {
    display: grid;
    grid-template-columns: 150px 1fr;
    margin-bottom: 10px;
}

.form-row {
    align-items: center;
}

.form-double-row {
    display: grid;
    grid-template-rows: 20px 1fr;
    align-items: center;
}

/* Typography and Text Elements */
label {
    font-weight: 500;
    font-size: 14px;
    margin-right: 10px;
}

/* Merge info and info-wrap as they share most properties */
info,
info-wrap {
    color: var(--vscode-descriptionForeground);
    font-weight: 500;
    font-size: 13px;
    margin-right: 10px;
}

info {
    text-wrap-mode: nowrap;
}

/* Form Elements */
span,
select {
    display: block;
}

textarea {
    color: var(--vscode-settings-textInputForeground);
    background: var(--vscode-settings-textInputBackground);
    border: 1px solid var(--vscode-settings-textInputBorder);
    width: 100%;
    box-sizing: border-box;
    resize: none;
}

/* Button Styles */
.button-theme-primary,
.button-theme-inline {
    border: 1px solid var(--vscode-button-border);
}

.button-theme-primary {
    padding: 8px 12px;
    color: var(--vscode-button-foreground);
    background: var(--vscode-button-background);
}

.button-theme-primary:hover:not(:disabled) {
    background: var(--vscode-button-hoverBackground);
    cursor: pointer;
}

.button-theme-inline {
    padding: 4px 6px;
    color: var(--vscode-button-secondaryForeground);
    background: var(--vscode-button-secondaryBackground);
}

.button-theme-inline:hover:not(:disabled) {
    background: var(--vscode-button-secondaryHoverBackground);
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payload Section Styles */
.payload-button-group {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.payload-textarea {
    width: 100%;
    min-height: 200px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Collapsible Section */
.collapsible-section {
    margin: 15px 0;
    border: 1px solid var(--vscode-widget-border);
    border-radius: 4px;
}

.collapsible-header,
.collapsible-content {
    max-width: 96%;
}

.collapsible-header {
    padding: 8px 12px;
    background-color: var(--vscode-sideBarSectionHeader-background);
    cursor: pointer;
    font-weight: 500;
}

.collapsible-content {
    padding: 10px;
    border-top: 1px solid var(--vscode-widget-border);
}

/* Validation and Error Styles */
.input-error {
    border: 1px solid var(--vscode-inputValidation-errorBorder) !important;
    background-color: var(--vscode-inputValidation-errorBackground) !important;
}

.error-message {
    color: var(--vscode-inputValidation-errorForeground);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.2;
}

/* Checkbox and Status Styles */
.remote-debug-checkbox {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--vscode-checkbox-foreground);
    border: 2px solid var(--vscode-checkbox-border) !important;
    border-radius: 3px !important;
    background-color: var(--vscode-checkbox-background) !important;
    cursor: pointer;
}

.remote-debug-checkbox:checked {
    background-color: var(--vscode-checkbox-selectBackground) !important;
    border-color: var(--vscode-checkbox-selectBorder) !important;
}

.remote-debug-checkbox:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: var(--vscode-checkbox-border) !important;
    background-color: var(--vscode-input-background) !important;
}

.remote-debug-checkbox:focus {
    outline: 2px solid var(--vscode-focusBorder);
    outline-offset: 2px;
}
